/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xos_cat.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __MSG_MAIN_MSG_MAIN_H__
#define __MSG_MAIN_MSG_MAIN_H__

namespace xos_cat
{

    class msg_main
    {
    public:
        msg_main();
        ~msg_main();

    public:
        int proc( xos_box::i_msg *& pMsg );

    protected:
        int all_module_startted();
        int all_module_stopped();

        int startting();
        int startted();

        int heart();

        int quitting();

        int log_stopped();
        int net_stopped();

        int quitted();

    };

} // xos_cat

#endif // __MSG_MAIN_MSG_MAIN_H__
